import 'ArticleItem.dart';
import 'package:json_annotation/json_annotation.dart';

part 'ArticleData.g.dart';

/// **************************************************************************
/// 文章列表的数据信息
/// **************************************************************************

@JsonSerializable()
class ArticleData {
  int curPage;

  int offset;

  bool over;

  int pageCount;

  int size;

  int total;

  List<ArticleItem> datas;

  ArticleData();

  factory ArticleData.fromJson(Map<String, dynamic> json) =>
      _$ArticleDataFromJson(json);

  Map<String, dynamic> toJson() => _$ArticleDataToJson(this);
}
